.class Lcom/estrongs/android/view/WebViewWrapper$d;
.super Ljava/lang/Object;
.source "WebViewWrapper.java"

# interfaces
.implements Landroid/view/View$OnLongClickListener;


# annotations
.annotation system Ldalvik/annotation/EnclosingMethod;
    value = Lcom/estrongs/android/view/WebViewWrapper;-><init>(Landroid/app/Activity;Lcom/estrongs/android/view/FileGridViewWrapper$a0;)V
.end annotation

.annotation system Ldalvik/annotation/InnerClass;
    accessFlags = 0x0
    name = null
.end annotation


# instance fields
.field final synthetic a:Lcom/estrongs/android/view/WebViewWrapper;


# direct methods
.method constructor <init>(Lcom/estrongs/android/view/WebViewWrapper;)V
    .locals 0

    .line 1
    iput-object p1, p0, Lcom/estrongs/android/view/WebViewWrapper$d;->a:Lcom/estrongs/android/view/WebViewWrapper;

    invoke-direct {p0}, Ljava/lang/Object;-><init>()V

    return-void
.end method


# virtual methods
.method public onLongClick(Landroid/view/View;)Z
    .locals 7

    .line 1
    check-cast p1, Landroid/webkit/WebView;

    invoke-virtual {p1}, Landroid/webkit/WebView;->getHitTestResult()Landroid/webkit/WebView$HitTestResult;

    move-result-object p1

    const/4 v0, 0x0

    if-nez p1, :cond_0

    return v0

    .line 2
    :cond_0
    invoke-virtual {p1}, Landroid/webkit/WebView$HitTestResult;->getType()I

    move-result v1

    const/4 v2, 0x1

    if-eqz v1, :cond_3

    const/4 v3, 0x2

    if-eq v1, v3, :cond_2

    const/4 v4, 0x3

    if-eq v1, v4, :cond_2

    const/4 v5, 0x4

    if-eq v1, v5, :cond_2

    const/4 v5, 0x5

    if-eq v1, v5, :cond_1

    const/4 p1, 0x7

    if-eq v1, p1, :cond_2

    const/16 p1, 0x8

    if-eq v1, p1, :cond_2

    const/16 p1, 0x9

    if-eq v1, p1, :cond_2

    goto :goto_0

    .line 3
    :cond_1
    invoke-virtual {p1}, Landroid/webkit/WebView$HitTestResult;->getExtra()Ljava/lang/String;

    move-result-object p1

    .line 4
    new-instance v1, Lcom/estrongs/android/ui/dialog/q$n;

    iget-object v5, p0, Lcom/estrongs/android/view/WebViewWrapper$d;->a:Lcom/estrongs/android/view/WebViewWrapper;

    iget-object v5, v5, Lcom/estrongs/android/view/h0;->a:Landroid/content/Context;

    invoke-direct {v1, v5}, Lcom/estrongs/android/ui/dialog/q$n;-><init>(Landroid/content/Context;)V

    .line 5
    invoke-virtual {v1, p1}, Lcom/estrongs/android/ui/dialog/q$n;->b(Ljava/lang/CharSequence;)Lcom/estrongs/android/ui/dialog/q$n;

    new-array v4, v4, [Ljava/lang/String;

    .line 6
    iget-object v5, p0, Lcom/estrongs/android/view/WebViewWrapper$d;->a:Lcom/estrongs/android/view/WebViewWrapper;

    const v6, 0x7f110066

    invoke-virtual {v5, v6}, Lcom/estrongs/android/view/h0;->c(I)Ljava/lang/String;

    move-result-object v5

    aput-object v5, v4, v0

    iget-object v5, p0, Lcom/estrongs/android/view/WebViewWrapper$d;->a:Lcom/estrongs/android/view/WebViewWrapper;

    const v6, 0x7f110071

    .line 7
    invoke-virtual {v5, v6}, Lcom/estrongs/android/view/h0;->c(I)Ljava/lang/String;

    move-result-object v5

    aput-object v5, v4, v2

    iget-object v5, p0, Lcom/estrongs/android/view/WebViewWrapper$d;->a:Lcom/estrongs/android/view/WebViewWrapper;

    const v6, 0x7f110a0a

    .line 8
    invoke-virtual {v5, v6}, Lcom/estrongs/android/view/h0;->c(I)Ljava/lang/String;

    move-result-object v5

    aput-object v5, v4, v3

    const/4 v3, -0x1

    new-instance v5, Lcom/estrongs/android/view/WebViewWrapper$d$a;

    invoke-direct {v5, p0, p1}, Lcom/estrongs/android/view/WebViewWrapper$d$a;-><init>(Lcom/estrongs/android/view/WebViewWrapper$d;Ljava/lang/String;)V

    .line 9
    invoke-virtual {v1, v4, v3, v5}, Lcom/estrongs/android/ui/dialog/q$n;->a([Ljava/lang/CharSequence;ILandroid/content/DialogInterface$OnClickListener;)Lcom/estrongs/android/ui/dialog/q$n;

    .line 10
    invoke-virtual {v1, v0}, Lcom/estrongs/android/ui/dialog/q$n;->d(Z)Lcom/estrongs/android/ui/dialog/q$n;

    invoke-virtual {v1}, Lcom/estrongs/android/ui/dialog/q$n;->c()Lcom/estrongs/android/ui/dialog/q;

    goto :goto_0

    :cond_2
    return v0

    .line 11
    :cond_3
    iget-object p1, p0, Lcom/estrongs/android/view/WebViewWrapper$d;->a:Lcom/estrongs/android/view/WebViewWrapper;

    invoke-static {p1}, Lcom/estrongs/android/view/WebViewWrapper;->e(Lcom/estrongs/android/view/WebViewWrapper;)V

    :goto_0
    return v2
.end method
